package com.wlyuan.open.scanner.utils.enums.quotation;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lijing
 * @Description 老系统报价费用类型
 */
@Getter
public enum QuotationDetailTypeEnum {

    LESS_LOAD("零担", 1),
    FULL_LOAD("整车", 2),
    PICK("提货费", 3),
    DELIVERY("送货费", 4),
    ON_LOAD("装货费", 5),
    OFF_LOAD("卸货费", 6),
    MIN("最低费用", 7),
    INSURANCE("保险费", 8),
    TAX("税费", 10),

    ADDITION("附加费", 9),
    CARRY("搬运费", 11),
    PAYMENT("预付", 12),
    PAYABLE("到付", 13),
    SIMPLE_CONTRACT_DETAIL("简约版合约的详情", 14),
    COLLECTION("代收货款", 15);

    private String name;
    private Integer value;

    QuotationDetailTypeEnum(String name, Integer value) {
        this.value = value;
        this.name = name;
    }

    public static List<Integer> TEMPLATE_SPEC_TYPE = new ArrayList<>();
    public static List<Integer> BILL_TYPE = new ArrayList<>();

    static {
        TEMPLATE_SPEC_TYPE.add(LESS_LOAD.getValue());
        TEMPLATE_SPEC_TYPE.add(FULL_LOAD.getValue());
        TEMPLATE_SPEC_TYPE.add(PICK.getValue());
        TEMPLATE_SPEC_TYPE.add(DELIVERY.getValue());
        TEMPLATE_SPEC_TYPE.add(ON_LOAD.getValue());
        TEMPLATE_SPEC_TYPE.add(OFF_LOAD.getValue());

        BILL_TYPE.add(PAYMENT.getValue());
        BILL_TYPE.add(PAYABLE.getValue());
        BILL_TYPE.add(COLLECTION.getValue());
    }
}
